package hw6;

import java.util.Scanner;

public class Driver {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		String userInput;
		
		InfixCalculator calc = new InfixCalculator();
		
		do {
			System.out.println("Enter an infix expression(separated by spaces) or \"exit\" to quit");
			userInput = scan.nextLine();
			if (!userInput.equals("exit")) {
				calc.evaluate(userInput);
			}
		} while (!userInput.equals("exit"));


	
	}
}
